package com.asura.app.wechat.repository;

import com.asura.app.wechat.repository.model.Tweet;

import org.junit.Before;
import org.junit.Test;

import java.util.List;

/**
 * Created by Asura on 2017/12/28.
 */
public class MomentDataRepositoryTest {
    @Before
    public void setUp() throws Exception {
    }

    @Test
    public void getTweets() throws Exception {
        MomentDataRepository momentDataRepository = new MomentDataRepository();
        List<Tweet> tweets = momentDataRepository.getTweets(null, 5).blockingGet();
        List<Tweet> testPage = momentDataRepository.getTweets("5", 25).blockingGet();
        List<Tweet> errorTweets = momentDataRepository.getTweets("sdf", 5).blockingGet();
    }

}